<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
    <head>
        <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
        <title>Yogette's Comment</title>
        <link href="<?php echo base_url(); ?>/yogette/css/yogette.css" rel="stylesheet" type="text/css"/>
    </head>
    <body id="blog_entry" class="body-user" style=" border: 0px black solid">
        <div class="main-wrapper-blog" style="float: left; border: 0px black solid ">
           
            <div class="blog-div" style="margin-left: 8em; margin-top: -1em">
                <table border="0" width="750" dir="ltr" cellpadding="10"> 
                    <th class="blog-div-th">Comments</th>
                    <?php foreach ($array as $row) { ?>
                        <tr class="blog-div-tr" >
                            <td>
                                <h2 class="blog-div-h2"><b>Title:</b><?php echo $row->comment_name; ?></h2>
                                <span class="metadata"><b>Author:</b><?php echo $row->comment_author; ?></span><br/>
                                <span class="metadata"><b>Created on:</b><?php echo $row->date_commented; ?></span><br/>

                                <p class="blog-div-p"><?php echo $row->comment_body; ?>
                                </p><div class="blog-nav-div">
                                    <a class="metadata-blog-div-a" href="/yogette/blog/delete_comment/<?php echo $this->uri->segment(3); ?>/<?php echo($row->comment_id); ?>">Delete Comment</a>
                                </div><!-- end nav -->
                                <hr/>
                            </td>
                        </tr>
                    <?php } ?>
                </table>
            </div>
        </div>
    </body>
</html>  